function http({
  url,
  success
}){
  wx.request({
    url,
    data: {},
    method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
     header: {'content-type':'application-'}, // 设置请求的 header
    dataType:'json',
    ResponseType:'text',
     success:(res)=>{
       success(res)
    }
  })
}
module.exports ={
  http
}